package cn.edu.imau.zy.activiti.config;

import cn.hutool.core.util.IdUtil;
import org.activiti.engine.impl.cfg.IdGenerator;

/**
 * @program: xsc-cloud
 * @description: 分布式ID生成器
 * @author: Wuyz
 * @create: 2020-12-07 15:52
 **/

public class DistributedIdGenerator implements IdGenerator {
    @Override
    public String getNextId() {
        return IdUtil.getSnowflake(3L, 3L).nextIdStr();
    }
}
